<?php 
	$siteid = $site['id'];
	$postsqry = dbSelect('posts',array("site_id=$siteid","parent_id=0","type_id=9"),"ORDER BY publishdate DESC");
if(mysql_numrows($postsqry) > 0){ 
	while($posts = mysql_fetch_array($postsqry)){
		$userid = $posts['author_id'];
		$author = mysql_fetch_array(dbSelect('users',array("id=$userid")));
		$authorname = $author['firstname'].' '.$author['lastname'];
		$nicetime = nicetime($posts['publishdate']);
?>
<h2>Vision</h2>
<div class="posts" id="posts">
<div class="post">
		<span class="post_author"><?php echo $authorname; ?></span>&nbsp;<span id="post_body"><?php echo urldecode($posts['post']); ?></span>
		<br /><?php editDel($posts['id'],$posts['author_id'],'vision'); ?>
</div><!--/post-->
<?php
	} /* /while posts */
}else{
	echo 'There is no vision yet. People may perish';
} /* /if posts */
?>
</div><!--/posts-->